/*
 * Dto class 
 * Created on 6 juin 2013 ( Time 15:03:33 )
 */
// This Bean has a basic Primary Key (not composite) 

package org.demo.entreesortie.bean;

import java.io.Serializable;

import javax.persistence.*;

import javax.validation.constraints.* ;
import org.hibernate.validator.constraints.* ;

import java.util.Date;

import javax.persistence.*;

@Entity
@Table(name="entreesortie", catalog="dbscoremanager" )
public class Entreesortie implements Serializable
{
    private static final long serialVersionUID = 1L;

    //----------------------------------------------------------------------
    // ENTITY PRIMARY KEY ( BASED ON A SINGLE FIELD )
    //----------------------------------------------------------------------
    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    @Column(name="idEntreeSortie", nullable=false)
    private int        identreesortie ;


    //----------------------------------------------------------------------
    // ENTITY FIELDS 
    //----------------------------------------------------------------------    
    @Column(name="idRapport", nullable=false)
    private int        idrapport    ;
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="entree")
    private Date       entree       ;
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="sortie")
    private Date       sortie       ;

    //----------------------------------------------------------------------
    // ENTITY LINKS ( RELATIONSHIP )
    //----------------------------------------------------------------------

    //----------------------------------------------------------------------
    // CONSTRUCTOR(S)
    //----------------------------------------------------------------------
    public Entreesortie()
    {
        super();
    }
    
    //----------------------------------------------------------------------
    // GETTER & SETTER FOR THE KEY FIELD
    //----------------------------------------------------------------------
    public void setIdentreesortie( int value )
    {
        this.identreesortie = value;
    }
    public int getIdentreesortie()
    {
        return this.identreesortie;
    }

    //----------------------------------------------------------------------
    // GETTERS & SETTERS FOR FIELDS
    //----------------------------------------------------------------------
    //--- DATABSE MAPPING : idRapport ( INT ) 
    public void setIdrapport( int value )
    {
        this.idrapport = value;
    }
    public int getIdrapport()
    {
        return this.idrapport;
    }

    //--- DATABSE MAPPING : entree ( DATETIME ) 
    public void setEntree( Date value )
    {
        this.entree = value;
    }
    public Date getEntree()
    {
        return this.entree;
    }

    //--- DATABSE MAPPING : sortie ( DATETIME ) 
    public void setSortie( Date value )
    {
        this.sortie = value;
    }
    public Date getSortie()
    {
        return this.sortie;
    }


    
    //----------------------------------------------------------------------
    // GETTERS & SETTERS FOR LINKS
    //----------------------------------------------------------------------


}
